﻿
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace CPXamarinPortable
{

    public partial class MyArticles
    {
        public class Pagination2
        {

            [JsonProperty("page")]
            public int Page { get; set; }

            [JsonProperty("pageSize")]
            public int PageSize { get; set; }

            [JsonProperty("totalPages")]
            public int TotalPages { get; set; }

            [JsonProperty("totalItems")]
            public int TotalItems { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class Author
        {

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("id")]
            public int Id { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class DocType2
        {

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("id")]
            public int Id { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class Category
        {

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("id")]
            public int Id { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class Tag
        {

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("id")]
            public int Id { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class License2
        {

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("id")]
            public int Id { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class ThreadEditor2
        {

            [JsonProperty("name")]
            public string Name { get; set; }

            [JsonProperty("id")]
            public int Id { get; set; }
        }
    }

    public partial class MyArticles
    {
        public class Item
        {

            [JsonProperty("id")]
            public string Id { get; set; }

            [JsonProperty("title")]
            public string Title { get; set; }

            [JsonProperty("authors")]
            public Author[] Authors { get; set; }

            [JsonProperty("summary")]
            public string Summary { get; set; }

            [JsonProperty("contentType")]
            public string ContentType { get; set; }

            [JsonProperty("docType")]
            public DocType2 DocType { get; set; }

            [JsonProperty("categories")]
            public Category[] Categories { get; set; }

            [JsonProperty("tags")]
            public Tag[] Tags { get; set; }

            [JsonProperty("license")]
            public License2 License { get; set; }

            [JsonProperty("createdDate")]
            public string CreatedDate { get; set; }

            [JsonProperty("modifiedDate")]
            public string ModifiedDate { get; set; }

            [JsonProperty("threadEditor")]
            public ThreadEditor2 ThreadEditor { get; set; }

            [JsonProperty("threadModifiedDate")]
            public string ThreadModifiedDate { get; set; }

            [JsonProperty("rating")]
            public double Rating { get; set; }

            [JsonProperty("votes")]
            public int Votes { get; set; }

            [JsonProperty("popularity")]
            public double Popularity { get; set; }

            [JsonProperty("websiteLink")]
            public string WebsiteLink { get; set; }

            [JsonProperty("apiLink")]
            public string ApiLink { get; set; }

            [JsonProperty("parentId")]
            public int ParentId { get; set; }

            [JsonProperty("threadId")]
            public int ThreadId { get; set; }

            [JsonProperty("indentLevel")]
            public int IndentLevel { get; set; }
        }
    }

    public partial class MyArticles
    {

        [JsonProperty("pagination")]
        public Pagination2 Pagination { get; set; }

        [JsonProperty("items")]
        public Item[] Items { get; set; }
    }

}
